import { Directive } from '@angular/core';
import { DatatableService } from './datatable.service';

@Directive({
  selector: '[lvTbody], tbody',
  host: {
    '[class.lv-table-tbody]': '_parentComponent',
  },
})
export class TbodyDirective {
  // 输入输出属性

  // 外部可访问变量
  _parentComponent;

  constructor(private service: DatatableService) {
    this._parentComponent = this.service.getParentComponent();
  }
}
